package com.tool.engine.export.task;


import com.tool.engine.export.function.ProcessFunction;

import java.util.List;

public class DynamicExportTask<T> extends AbstractExportTask<T> {

    private final List<List<String>> heads;

    public DynamicExportTask(List<List<String>> heads, ProcessFunction<T> consumer, String fileName, String sheetName, Boolean all) {
        super(consumer, all, true, fileName, sheetName, null);
        this.heads = heads;
    }

    public DynamicExportTask(List<List<String>> heads, ProcessFunction<T> consumer, String fileName, String sheetName) {
         this(heads, consumer, fileName, sheetName, null);
    }


    @Override
    public List<List<String>> getHead() {
        return heads;
    }

}
